package com.xnfh.planting.viewmodel

import com.xnfh.common.bean.PlantOptionBean
import com.xnfh.framework.bean.RespStateData
import com.xnfh.network.api.ApiService
import com.xnfh.network.base.BaseRepository
import com.xnfh.network.manager.ApiManager
import com.xnfh.network.manager.RetrofitApi
import okhttp3.RequestBody

/**
 * @Description:
 * @Author: ziheng
 * @CreateDate: 2023/12/15 17:35
 * @UpdateUser: ziheng
 * @UpdateDate: 2023/12/15 17:35
 * @UpdateRemark: 更新说明
 */
class PlantOptionViewModelRes : BaseRepository() {

    suspend fun requestPlantOption(body: RequestBody, data: RespStateData<List<PlantOptionBean>>) = dealResp(
        { ApiManager.api.requestSchemeList(body) }, data
    )

}